package cc.geguo.file;

import com.opensymphony.xwork2.ActionSupport;

import java.io.File;

/**
 * Created by 13687 on 2017/1/9.
 * 使用Struts框架实现文件上传
 * 和其他类型表单一样，自动封装成属性
 */
public class FileUpload extends ActionSupport{
	private String userName;
	private File file1;

	public void setFile1(File  file1) {
		this.file1 = file1;
	}

	public void setFile1ContentType(String file1ContentType) {
		this.file1ContentType = file1ContentType;
	}

	public void setFile1FileName(String file1FileName) {
		this.file1FileName = file1FileName;

	}

	private String file1FileName;
	private String file1ContentType;


	public void setUserName(String userName) {
		this.userName = userName;
	}



	@Override
	public String execute() throws Exception {
		System.out.println("我是可以访问到的");
		return SUCCESS;
	}
}
